<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mytable/jrtable/cc_tasklist.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/mytable/jrtable/cc_tasklist.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'cc_tasklist_id',
                footer: "Foots",
                cnName: '任务反馈表',
                name: 'jrtable/cc_tasklist',
                url: "/cc_tasklist/",
                sortName: "fk_ren"
            });
            const editFormFields = ref({"cc_task_id":"","fk_describe":"","fk_datetime":"","fk_ren":""});
            const editFormOptions = ref([[{"title":"","field":"cc_task_id"},
                               {"title":"反馈明细","field":"fk_describe","type":"editor"}],
                              [{"title":"反馈时间","field":"fk_datetime","type":"datetime"},
                               {"title":"反馈人","field":"fk_ren","type":"text"}]]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:'cc_tasklist_id',title:'任务反馈明细表',type:'guid',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'cc_task_id',title:'cc_task_id',type:'guid',width:110,hidden:true,align:'left'},
                       {field:'fk_describe',title:'反馈明细',type:'string',width:220,align:'left',sort:true},
                       {field:'fk_datetime',title:'反馈时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'fk_ren',title:'反馈人',type:'string',width:220,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
